<?php
$this->breadcrumbs=array(
	UserModule::t('User')=>array('/user'),
	UserModule::t('Login'),
);?>

<h1><?php echo UserModule::t('Login'); ?></h1>
<p><?php echo UserModule::t('Please fill out the following form with your login credentials:'); ?></p>

<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.BootActiveForm', array(
	'htmlOptions'=>array('class'=>'well'),
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
	
	<?php echo $form->textFieldRow($model, 'username', array('class'=>'span3')); ?>
	<?php echo $form->passwordFieldRow($model, 'password', array('class'=>'span3')); ?>
	
	<p class="hint">
		<?php echo CHtml::link(UserModule::t("Register"), '/user/register'); ?> | <?php echo CHtml::link(UserModule::t("Lost Password?"), '/user/recovery/forgotpassword'); ?>
	</p>
	
	<?php echo $form->checkBoxRow($model, 'rememberMe'); ?>
	
	<?php $this->widget('bootstrap.widgets.BootButton', array('buttonType'=>'submit', 'icon'=>'ok', 'label'=>'Login')); ?>
	
<?php $this->endWidget(); ?>
